﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="companyLevel.aspx.cs" Inherits="WebApp.admin.company.companyLevel" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1"><title>
	 
</title><link href="../css/skin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" language="javascript">

    ///验证商品类型表单
    function checkCompanyLevelForm() {
        var companyLevel = document.getElementById("txtCompanyLevel");
        var onSale = document.getElementById("txtOnSale");
        var sortOrder = document.getElementById("txtSortOrder");
        if (companyLevel.value == "") {
            alert("请输入商家级别名称！");
            companyLevel.focus();
            return false;
        }
        if (onSale.value == "") {
            alert("请输入默认折扣！");
            onSale.focus();
            return false;
        }
        if (sortOrder.value == "") {
            alert("请输入排序！");
            sortOrder.focus();
            return false;
        }
        return true;
    }

</script>

</head>




<body class="body">
    <table class="main" cellpadding="0" cellspacing="0">

        <tr>

            <td class="td_middle_middle">
                <div class="maincontent">
                <div  class="navgater"><img src="../images/module.gif" width="20" height="22" alt=""/>
所在位置：商家级别列表->
<%= Request.QueryString["ot"] == "ed" ? "商家级别编辑" : "商家级别添加"%>

<a style=" display:block; float:right;" href="javascript:location.href=document.referrer;" ><img src="../images/history.gif" border="0" /></a>
</div>
                    <form name="form1" id="form1" runat="server">


                        <table cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td class="td_title">
                                    商家级别名称：</td>
                                <td class="td_content">
                                    <input name="txtCompanyLevel" runat="server" type="text" id="txtCompanyLevel" maxlength="50" />*最多50个字符</td>
                            </tr>
                                 <tr>
                                <td class="td_title">
                                    默认折扣：</td>
                                <td class="td_content">
                                    <input name="txtOnSale" runat="server" type="text" id="txtOnSale" onpaste="return false" style="ime-mode: disabled" onkeypress="if((event.keyCode&lt;48 || event.keyCode>57) &amp;&amp; event.keyCode!=46 || /\.\d\d$/.test(value))event.returnValue=false" />*</td>
                            </tr>

                                 <tr>
                                <td class="td_title">
                                    排序：</td>
                                <td class="td_content">
                                    <input name="txtSortOrder" runat="server" type="text" id="txtSortOrder" onpaste="return false" style="ime-mode:disabled" onkeypress="if ((event.keyCode&lt;48 || event.keyCode>57||event.keyCode==46)) event.returnValue=false"/>*</td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                   <asp:Button ID="btnSubmit" runat="server" Text="确  定" CssClass="formButton" OnClick="btnSubmit_Click"
                                        OnClientClick="return checkCompanyLevelForm();" />&nbsp;&nbsp;&nbsp;&nbsp;
                               
                                    <input id="btnBack" type="button" class="formButton" value=" 返  回 " onclick="location.href='companyLevelList.aspx';" /></td>
                            </tr>
                        </table>
                    </form>
                    </div>

            </td>

        </tr>

    </table>
</body>
</html>
